#include<iostream>
using namespace std;

class A
{
public:
	virtual void func() { cout << "A:func()" << endl; }
private:
	int ma;
};
class B:virtual public A
{
public:
	virtual void func() { cout << "A:func()" << endl; }
private:
	int mb;
};
#if 0
int main()
{	
	A* p = new B();
	p->func();
	delete p;
	return 0;
}
#endif
